package org.nanotek.cms.domain.base;

import org.nanotek.AbstractBase;
import org.nanotek.Base;
import org.nanotek.Kong;
/**
 * Relational databases tell one row from another by using key - in particular, the primary key. 
 * However, in-memory objects don't need such a key, as the object system ensures the correct identity under the covers 
 * (or in C++'s case with raw memory locations).
 * Reading data from a database is all very well, but in order to write data back you need to tie the 
 * database to the in-memory object system.
 * 
 * @author josecarlosmauger.
 * 
 */

/**
 * 
 * @author josecanovamauger
 *
 * @param <K>
 */
@SuppressWarnings("serial")
public class StringIdentity<K extends Base<String>> extends AbstractBase<K> implements Kong<String> {

	@Override
	public String get() {
		return k.getId();
	}

}
